#coding=utf-8

import os.path

import lonote.path as path

jsDir = path.fix.jsDir

#將 js 程式碼導入為 python 字串

#用shift+滑鼠滾輪+滑鼠左鍵控制圖片大小
with open(os.path.join(jsDir,'imgSizeControl.js'),
        encoding = 'utf-8') as file:
    imgSizeControl = file.read()

#移除當前選擇區域的格式
with open(os.path.join(jsDir,'removeTag.js'),
        encoding = 'utf-8') as file:
    removeTag = file.read()

#條棒滾到heading的位置。
#需要代換 1. {$title} =目標名稱 2. {$index} =出現次數索引
with open(os.path.join(jsDir,'scrollToHeading.js'),
        encoding = 'utf-8') as file:
    scrollToHeading = file.read()

#透過座標位置指定文字游標位置
#需要代換 1. {$posx} =X軸值 2. {$posy} =Y軸值
with open(os.path.join(jsDir,'setCaretByPos.js'),
        encoding = 'utf-8') as file:
    setCaretByPos = file.read()

